package edu.wpi.first.wpilibj.swarm;
import edu.wpi.first.wpilibj.Compressor;
import edu.wpi.first.wpilibj.IterativeRobot;


public class RobotMain extends IterativeRobot {
	Drivetrain drivetrain;
	Teleop     teleop;
	Autonomous autonomous;
	Arm        arm;
	Kicker     kicker;
	Compressor compressor;
	boolean    compressor_enabled;
	
    public void robotInit() {
		arm        = new Arm();
		kicker     = new Kicker();
		autonomous = new Autonomous(this);
		drivetrain = new Drivetrain(this);
		teleop     = new Teleop(this);
		compressor = new Compressor(9,2);
		compressor_enabled = false;
		new Thread(drivetrain).start();
    }
	
	public void teleopInit() {
		teleop.init();
	}
	
	public void teleopPeriodic() {
		teleop.periodic();
    }
	
	public void autonomousContinuous() {
		autonomous.continuous();
	}
}